//
//  WebUserSettingView.m
//  BabyHelper
//
//  Created by  thomas on 11-7-24.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "WebUserSettingView.h"


@implementation WebUserSettingView
@synthesize usernameLabel;
@synthesize passwordLabel;
@synthesize usernameTextField;
@synthesize passwordTextField;
// The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
	
	self.title = NSLocalizedString(@"Web Account Setting", nil);
    [super viewDidLoad];
	
	UIBarButtonItem *saveItem = [[UIBarButtonItem alloc]
								 initWithTitle:NSLocalizedString(@"Done", nil)
								 style:UIBarButtonItemStyleBordered 
								 target:self
								 action:@selector(toggleSave)		
								 ];
	self.navigationItem.rightBarButtonItem = saveItem;
	[saveItem release];	
	
	//set background image
	self.parentViewController.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background"]];
	self.view.backgroundColor = [UIColor clearColor];
	//set navigation background color
	self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:navBarRed green:navBarGreen blue:navBarBlue alpha:navBarAlpha];
}


- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
	self.usernameLabel = nil;
	self.passwordLabel = nil;
	self.usernameTextField = nil;
	self.passwordTextField = nil;
}


- (void)dealloc {
    [super dealloc];
}
@end
